<?php
class GuildSkillVo extends SzAbstractMySqlVo
{

    private $guildId;
    private $skillId;
    private $createTime;
    private $updateTime;
    private $expireTime;

    /**
     * Initialize GuildSkillVo.
     *
     * @param $guildId
     * @param $skillId
     * @param $createTime
     * @param $updateTime
     * @param $expireTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return GuildSkillVo
     */
    public function __construct($guildId, $skillId, $createTime, $updateTime, $expireTime, $isInsert = false) {
        $this->guildId = $guildId;
        $this->skillId = $skillId;
        $this->createTime = $createTime;
        $this->updateTime = $updateTime;
        $this->expireTime = $expireTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'GuildSkillVo';
        $this->ormName = 'GuildSkill';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'guildId' => $this->getGuildId(),
            'skillId' => $this->getSkillId(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'expireTime' => $this->getExpireTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'guildId' => $this->getGuildId(),
            'skillId' => $this->getSkillId(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'expireTime' => $this->getExpireTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getGuildId(),
            $this->getSkillId(),
            $this->getCreateTime(),
            $this->getUpdateTime(),
            $this->getExpireTime(),
        );
    }

    public function getGuildId()
    {
        return $this->guildId;
    }

    public function setGuildId($val)
    {
        $this->saveColumnStatus(0, $this->guildId);
        $this->guildId = $val;
    }

    public function getSkillId()
    {
        return $this->skillId;
    }

    public function setSkillId($val)
    {
        $this->saveColumnStatus(1, $this->skillId);
        $this->skillId = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(2, $this->createTime);
        $this->createTime = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(3, $this->updateTime);
        $this->updateTime = $val;
    }

    public function getExpireTime()
    {
        return $this->expireTime;
    }

    public function setExpireTime($val)
    {
        $this->saveColumnStatus(4, $this->expireTime);
        $this->expireTime = $val;
    }

}